package com.youku.plugins.report
{
   import com.youku.plugins.report.view.ReportMediator;
   import com.youku.plugins.report.model.ReportProxy;
   import flash.display.MovieClip;
   import com.youku.interfaces.IPlayerProxy;
   import com.youku.GlobalService;
   import com.youku.GlobalServiceKeys;
   
   public class ReportFacade extends Object
   {
      
      public function ReportFacade() {
         super();
      }
      
      private static var _instance:ReportFacade;
      
      public static function getInstance() : ReportFacade {
         if(_instance == null)
         {
            _instance = new ReportFacade();
         }
         return _instance as ReportFacade;
      }
      
      private var _reportMediator:ReportMediator;
      
      private var _reportProxy:ReportProxy;
      
      public function init(param1:MovieClip, param2:IPlayerProxy) : void {
         this._reportProxy = new ReportProxy(param2);
         this._reportMediator = new ReportMediator(param1,param2,this._reportProxy);
         GlobalService.addService(GlobalServiceKeys.REPORT_PROXY,this._reportProxy);
      }
   }
}
